<%@ Control Language="C#" AutoEventWireup="true" CodeFile="UCMessageBox.ascx.cs" Inherits="UCMessageBox" %>
<style>
    .message_box_exito
    { 
       position: absolute; 
       top: 4.5; 
       left: 50%;        
       margin-left: -200px;
	   background:#006600;
	   color: #FFF;
	   padding:5px;
       border:1px solid #CCCCCC;
       text-align:center; 
       font-weight:bold; 
       width:400px;
    }

    .message_box_error
    { 
       position: absolute; 
       top: 4.5; 
       left: 50%;
       margin-left: -200px;        
	   background:#FF0000;
	   color: #FFF;
	   padding:5px;
       border:1px solid #CCCCCC;
       text-align:center; 
       font-weight:bold; 
       width:400px;
    }
    
     .message_box_precaucion
    { 
       position: absolute; 
       top: 4.5; 
       left: 50%;
       margin-left: -200px;         
	   background:#FDD017;
	   color: #000;
	   padding:5px;
       border:1px solid #CCCCCC;
       text-align:center; 
       font-weight:bold; 
       width:400px;
    }
</style>   

 <asp:DataGrid ID="dgrdMessages" EnableViewState="False" runat="server" BorderWidth="0px" BorderStyle="None" ShowHeader="False" AutoGenerateColumns="False">
    <Columns>
        <asp:TemplateColumn>
            <ItemTemplate>               
                <div class='<%# Eval("Type").ToString() == Constantes.MSGBOX_TIPO_EXITO ? "message_box_exito": (Eval("Type").ToString() == Constantes.MSGBOX_TIPO_ERROR) ? "message_box_error" : "message_box_precaucion"%>'>   
                    <asp:Label ID="lblMensaje" runat="server"   Text='<%#Eval("Message").ToString()%>' />
                </div>                
            </ItemTemplate>
        </asp:TemplateColumn>
    </Columns>    
</asp:DataGrid>

 <div class="clear"></div>



